//实现runnable
class  MyRunnable implements Runnable{
    @Override
    public void run() {
        System.out.println("hello word");
    }
}
public  class TreadDem02 {
    public static void main(String[] args) {
       Runnable runnable=new MyRunnable();
       Thread t= new Thread(runnable);
       t.start();
    }
}

